import { t } from 'i18next'
export interface PlanEntity {
	layout: number
	id: string
	mode: number
	name: string
}
/**表示转换后的接口数据(接口转换为展示的数据)*/
export interface RevertPlanEntity {
	label: string
	value: string
	layout?: number
	mode?: number
}
export const defaultPlan = {
	label: t('默认预案'),
	value: '0',
	mode: undefined,
	layout: undefined,
}

export interface PlanRef {
	getValue: () => RevertPlanEntity | null
}
